// JavaScript Document
function copyToClipBoard(){
	var textToCopy = document.title+"\r\n" + document.location.href;
	copyText(textToCopy);
}
function copyText(textToCopy) {
	if(window.clipboardData){
		window.clipboardData.clearData();
		window.clipboardData.setData("Text",textToCopy);
	}
	//FireFox
	else if (window.netscape){
		try {
			netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
		} 
		catch (e){
			alert("您使用的浏览器不支持此复制功能，请使用Ctrl+C或鼠标右键复制链接地址。");
			return false;
		}
	}
	alert("帖子标题和链接已复制，您可以粘贴给QQ、MSN上的好友了。");
}
function gotopage(gid){
	if(gid){
		parent.location.href="page-"+gid+".html";
	}
}
function $(x){return document.getElementById(x);}

